home *** CD-ROM | disk | FTP | other *** search
- RUN(1) DOS COMMANDS RUN(1)
-
- NAME
- RUN : To execute a command as a background process.
-
- SYNOPSIS
- RUN <command> [+ <{command}>]
-
- TEMPLATE
- RUN "COMMAND/F"
-
- PATH
- C:
-
- DESCRIPTION
- RUN executes one or more commands in the background. What it
- really does is to start a new CLI process without creating a new window.
- The input and output stream of the current CLI are passed to the new
- one. The command(s) are then executed by the new CLI, the input and
- output being done in the "old" CLI window.
- Usually, only commands that have little input and output will be
- started with run. For the commands that have a QUIET switch (like COPY
- for example) it is better to set it. Otherwise, the output can be
- redirected into NIL: . This way, the CLI window will not be messed up
- by the commands that run in the background.
- RUN can also be used to start a program (like a text editor for
- example) that opens its own window. A possible application would be to
- edit and compile files simultaneously.
- RUN is also useful when using PIPEs. The command that reads the
- PIPE is started with RUN (the input being redirected to that PIPE) and
- the command that writes to the PIPE is started from the command line
- (cfr the examples.)
-
- SEE ALSO
- STATUS
-
- EXAMPLES :
- - To start an editor in the background:
- > RUN MyEditor MyProg.c
-
- - To start a process that will print a short message on the screen at a
- given time:
- > RUN wait until 12:00 +
- > ECHO "It is lunch time!!"
-
- - To list a directory with more, using a PIPE
- > RUN more <PIPE:A
- > list >PIPE:A
-
-